package com.ming.feign.hystrix;

import com.alibaba.fastjson.JSON;
import com.ming.domain.User;
import com.ming.feign.ProdCommUserFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author:何元才
 * @Desc:
 * @data:2021-04-08 16:31
 */
@Component
@Slf4j
public class ProdCommUserFeignHystrix implements ProdCommUserFeign {

    /**
     * 远程调用获取用户集合的方法
     *
     * @param userIds
     * @return
     */
    @Override
    public List<User> getUserList(List<String> userIds) {
        log.error("远程调用获取用户集合失败,用户ids为{}", JSON.toJSONString(userIds));
        return null;
    }
}
